package com.ruoyi.api.service;

import com.ruoyi.api.common.BaseService;
import com.ruoyi.api.domain.GuidEntity;
import com.ruoyi.api.domain.GuidRegionEntity;
import com.ruoyi.api.domain.UserEntity;
import com.ruoyi.api.domain.UserGuidEntity;
import com.ruoyi.api.vo.GuidVo;
import org.bson.types.ObjectId;
import org.springframework.data.domain.Page;

import java.util.List;

public interface GuidService extends BaseService<GuidEntity> {
    Page<GuidEntity> selectPage(GuidEntity loginBody, int page, int size);

    List<GuidEntity> selectAll();

    /*该用户是否有进行中的plan 或者 guid*/
    List<UserGuidEntity> checkGuid(UserEntity user, String type);

    GuidEntity selectById(Object id);

    GuidEntity insertUser(GuidEntity user);

    GuidEntity getById(String id);

    void updateCate(String id, String[] split);

    List<GuidEntity> setCate(List<GuidEntity> content);

    List<String> selectGuidByCate(List<String> check);

    GuidVo setPlans(GuidEntity guidEntity);
}
